import { defHttp, BASEURL } from '../service'
import type { DicRequest, DicResponse, User01Request, User01Response } from '../types'

type DATA = Record<string, any>

// 获取字典通用配置
export function getDicList(data?: DATA) {
  return defHttp<DicRequest, DicResponse>({
    method: 'get',
    url: `/api3/channel/dic/listByType`,
    params: data,
  })
}

// 获取用户信息
export function getUserInfoAPI(data: User01Request) {
  return defHttp<User01Request, User01Response>({
    method: 'post',
    url: `${BASEURL}/api/v3p5/user01`,
    data,
  })
}
